package spec.lijunyao.unit4.clazz._abstract2;

public class Horse extends Animal {

    Horse(String n) {
        super(n);
    }

    /**
     * 子类继承了抽象类，就必须实施(implement)父类抽象方法
     */
    @Override
    void eat() {
        System.out.println("马儿吃草!");
    }

    @Override
    void drink() {
        System.out.println("马儿喝水!");
    }
}